package com.example.lib_car.adapter

import android.graphics.Bitmap
import android.net.Uri
import android.widget.ImageView
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.lib_car.R

class PicAdapter : BaseQuickAdapter<Uri,BaseViewHolder>(R.layout.item_pic){
    override fun convert(holder: BaseViewHolder, item: Uri) {
        val carpic = holder.getView<ImageView>(R.id.car_pic)
        carpic.setImageURI(item)
    }

}